rearranges section headings