collectDocuments