refactor, moved initializtions method to private section, test refactor