working on cascade permutations