updating tolerance