removes some unnecessary paragraphs