better names, calculate permutations