xrange is not inclusive