remove unnecessary floatCompare func