adding functionality to merge constraints