removing old unnecessary code.