set constraints