Mint function is not working

i want to add mint function to my token. but its given me error

 Type is not callable
--> si.sol:1002:9:

here is the functions

 function mint(address to, uint256 amount) public onlyOwner {
    _tTotal(to, amount);
}


function _mint(address account, uint256 amount) internal virtual onlyOwner {
    require(account != address(0), "BEP20: mint to the zero address");

    _transfer(address(0), account, amount);

    totalSupply += amount;
    balanceOf[account] += amount;
    emit Transfer(address(0), account, amount);
}

here is the total supply generator

uint256 private constant MAX = ~uint256(0);
uint256 private _tTotal = 1000000000000000  * 10**18;
uint256 private _rTotal = (MAX - (MAX % _tTotal));
uint256 private _tFeeTotal;

full code https://github.com/coderbang1/mint/tree/main

Based on what you wrote here, _tTotal is not a function you can call, it is just a member variable of the token contract. That is why the error you are seeing says the type is not callable.

I think what you want is something more like this:

function mint(address to, uint256 amount) public onlyOwner {
    _mint(to, amount);
}