permutation finished up