update second trial of permutation