horizontal merging