working on permutations
work in progress