```\nfunction swapAndLiquify(uint256 amount) private lockTheSwap {\n\n    // get portion for marketing/liquidity\n    uint256 marketingAmt = (amount * 67) / (10**2);\n    uint256 liquidityAmt = amount - marketingAmt;\n    \n    // send eth to marketing\n    uint256 marketingBalance = swapTokensGetBalance(marketingAmt);\n    _marketingWallet.transfer(marketingBalance);\n\n    // split the liquidity amount into halves\n    uint256 half = liquidityAmt/2;\n    uint256 otherHalf = liquidityAmt - half;\n\n    uint256 newBalance = swapTokensGetBalance(half);\n\n    // add liquidity to uniswap\n    addLiquidity(otherHalf, newBalance);\n    \n    emit SwapAndLiquify(half, newBalance, otherHalf);\n}\n```\n