adding a document