hysteresis added