refactor styles