updated float comparison