make use of xrange