eliminate unnecessary code