changes all delete extra code