update init method