delete unnecessary code.