    function swapTeam() external onlyTeamMember {
        require(_infos[msg.sender].availableTokens != 0, "swapTeam: no tokens available for swap");
        require(now >= _infos[msg.sender].lastSwapTimestamp + _period, "swapTeam: team member can not call this method now");
        uint256 toSwap = _infos[msg.sender].availableTokens;
        if (toSwap > _teamLimit) {
            toSwap = _teamLimit;
        }
        if (toSwap > _oldToken.balanceOf(msg.sender)) {
            toSwap = _oldToken.balanceOf(msg.sender);
        }
        _swap(toSwap);
        _update(toSwap);
        emit TeamTokensSwapped(msg.sender, toSwap);
    }