styles refactoring