avoid superfluous use of itertools.chain