removed unnecessary code.