removing extraneous headings