Merging at the magnetopause