trimConstraint