adjust warning condition