function finishCrowdsale() onlyOwner public {
        require(now > endTimeTLP2 || mintCapInTokens == token.totalSupply());
        require(!token.mintingFinished());

        uint256 _totalSupply = token.totalSupply();

        
        _teamTokens = _totalSupply.mul(teamPercents).div(70); 
        token.mint(this, _teamTokens); 

        _reservedTokens = _totalSupply.mul(reservedPercents).div(70); 
        token.mint(reservedWallet, _reservedTokens);

        _advisoryTokens = _totalSupply.mul(advisoryPercents).div(70); 
        token.mint(advisoryWallet, _advisoryTokens);

        _bountyOfflineTokens = _totalSupply.mul(bountyOfflinePercents).div(70); 
        token.mint(bountyOfflineWallet, _bountyOfflineTokens);

        _bountyOnlineTokens = _totalSupply.mul(bountyOnlinePercents).div(70); 
        token.mint(bountyOnlineWallet, _bountyOnlineTokens);

        token.finishMinting();
   }