remove unnecessary code.