permutations are working