removed an unecessary variable