set max number of paragraphs