better merging