change xrange to range