update permutaionsI and II