deletes unnecessary code