fixing paragraphs and headings