remove unneeded variable assignment