removed itertools dependency, since its far too slow