fixing constraints