xrange replaced with range