refactoring some styles