calculate hysteresis method 1 repeat previous step