update constrant