finalize merge