refactoring stylesheet