clean unnecessary code