removal of extraneous headings