more on document generation