add the document