merging samples