changed floating point equality comparison