allow input from any function yielding tuples of lists