prepare the merge