renamed permutations to transpose