remove unnecessary variable assignment