removes unecessary variable