refactor initialize method