function can be called only when _mode==1");
        require(_distDay != 0,"you haven't distributed");
        require(_fFinish == false, "not finish");
        require(_fCancelDist == false, "must not cancel dist");
        uint256 daysAfterDist;
        uint256 tday = today();
      
        for(uint256 i=0;i<_details.length;i++){
            
            if (_details[i].isFinish == true) {
                continue;
            }

            require(tday!=_details[i].lastTransferDay,"you have applied for todays token");
            daysAfterDist = sub(tday,_distDay);
            if(daysAfterDist >= _details[i].lockDay){
                if(add(_details[i].transferedAmount, _details[i].oneDayTransferAmount) <= _details[i].distAmount){
                
                    _erc20token.transfer(
                        _details[i].founder,
                        _details[i].oneDayTransferAmount
                    );
                    
                    _details[i].transferedAmount = add(_details[i].transferedAmount, _details[i].oneDayTransferAmount);
                }
                else if(_details[i].transferedAmount < _details[i].distAmount){
                
                    _erc20token.transfer(
                        _details[i].founder,
                        sub( _details[i].distAmount, _details[i].transferedAmount)
                    );
                    
                    _details[i].transferedAmount = _details[i].distAmount;
                }
                
                _details[i].lastTransferDay = tday;
            }
        }