xrange to range