refactor headings