fixed next
removed xrange