changed the permutation example in main