opitimize init method