removing unecessary variable assignment