mergeing legal