adding docsperpage