removes unneeded variable