tweak applyConstraints