Simplified some methods of xrange