loses unnecessary code