merging in the wrong order