change permutation structure