combine the documents and delete redundant one