getting rid of unecessary variable