tolerance is configurable