avoid permutations by using full-length arrays