using "all" with xrange