updates constraints