update design and impl of permutations II