update second trial of permutations-ii