code cleanup for xrange call.