added permutation script