removing unnecessary variable declarations