corrected the possCombinations calculation