added SkeletonToleranceFunction