refactoring: making the initialization as a fct