added allCombinations to utils