threshold checkDirection