adds div grouping to major headings