further deceleration improvement by using epsilon

for floating point comparison with zero