rejig to create a new document