removal of unnecessary variable assignment