made addAtConstraint more flexible