removing legacy code in init