prepare_merge