switched xrange out to use floats