discarded unnecessary code