removing unnecessary variable assignment