modified permutations