removed duplicate variable declaration