updates to applyConstraints  for new syntax