dynamic checking of merge to