added hinge constraint