remove itertools dependency