trim unneeded headings