update constraints snippet