update constraints