permutation problems