```\nfunction swapBack() private {\n    uint256 contractBalance = balanceOf(address(this));\n    uint256 totalTokensToSwap = contractBalance;\n    bool success;\n\n    if (contractBalance == 0) {\n        return;\n    }\n\n    if (contractBalance > swapBackValueMax) {\n        contractBalance = swapBackValueMax;\n    }\n\n    uint256 amountToSwapForETH = contractBalance;\n\n    uint256 initialETHBalance = address(this).balance;\n\n    swapTokensForEth(amountToSwapForETH);\n\n    uint256 ethBalance = address(this).balance.sub(initialETHBalance);\n\n    uint256 ethForDev = ethBalance.mul(tokensForProject).div(\n        totalTokensToSwap\n    );\n\n    tokensForMarketing = 0;\n    tokensForProject = 0;\n\n    (success, ) = address(projectWallet).call{value: ethForDev}("");\n\n    (success, ) = address(marketingWallet).call{\n        value: address(this).balance\n    }("");\n}\n```\n