permutation sequence update