testing how permutations work