eliminating extra code