general styles refactoring