styles and refactoring