itertools fix