refactor initialize method in Cell