fixed init method