delete unneccessary code