refactoring of getConstraints