added threshold value to avoid counter steering