removing unnecessary variable declaration