get permutation