```\nfunction getExcludedBalances() internal view returns (uint256) {\n    uint256 totalExcludedHoldings = 0;\n    for (uint i = 0; i < excludedFromRewards.length; i++) {\n        totalExcludedHoldings += balanceOf(excludedFromRewards[i]);\n    }\n    return totalExcludedHoldings;\n}\n```\n