add initial version for permutations