finish addJoint function.