why are these indices being passed as floats?