merging doc