update calculate tolerance