initialize method.