commented out a checkPermutations to fix crash