figuring out permutation submissions