removed unnecessary code from init