solved a permutation problem