fixup to use floats instead of ints