removes unneeded code