update constraints snippets