fixed unnessecary variable declaration