update initialize method