xrange to range.