update permutation solution