fixed mistake, todo: write test for floats