add bits about finding all permutations