create initialize method