update tolerance