remove the unnecessary code