removed an unnecussary variable