revise permutations_dynamic: tuples