scaling permutations via dictionary