delete the unnecessary code