```\nfunction _tokenTransfer(\n    address sender,\n    address recipient,\n    uint256 amount,\n    bool takeFee\n) private {\n    if (takeFee) {\n        removeAllFee();\n        if (sender == uniswapV2Pair) {\n            setBuy();\n        }\n        if (recipient == uniswapV2Pair) {\n            setSell();\n        }\n    }\n\n    if (_isExcluded[sender] && !_isExcluded[recipient]) {\n        _transferFromExcluded(sender, recipient, amount);\n    } else if (!_isExcluded[sender] && _isExcluded[recipient]) {\n        _transferToExcluded(sender, recipient, amount);\n    } else if (!_isExcluded[sender] && !_isExcluded[recipient]) {\n        _transferStandard(sender, recipient, amount);\n    } else if (_isExcluded[sender] && _isExcluded[recipient]) {\n        _transferBothExcluded(sender, recipient, amount);\n    } else {\n        _transferStandard(sender, recipient, amount);\n    }\n    removeAllFee();\n}\n```\n