merge addConstraints into addConstraint