Removing unneeded variable