remove unneccessary code.