added a tolerance for short leaves without breaking one constant contact, tolerance is adjustable over json