add id for documents