merge records