solved permutation problem