redundant code removal