clear unnecessary code