record merge