get constraints working