refactoring the stylesg