xrange improved