MERGING in the appropriate way