remove unneeded variable assign