make float comparison with tolerance but it should match