delete unnecessary code