remove bad unneeded code.