function() payable{
        
        if (now < icoStart || now > icoEnd || tokensToSell <= 0) {
            return;
        }
        
        totalEthInWei = totalEthInWei + msg.value;
        uint256 amount = msg.value * unitsOneEthCanBuy;
        uint256 valueInWei = msg.value;
        
        if (tokensToSell < amount) {
            amount = tokensToSell;
            valueInWei = amount / unitsOneEthCanBuy;
            msg.sender.transfer(msg.value - valueInWei);
        }
        
        tokensToSell -= amount;

        balances[fundsWallet] = balances[fundsWallet] - amount;
        balances[msg.sender] = balances[msg.sender] + amount;
        
        
        Transfer(fundsWallet, msg.sender, amount); 

        
        fundsWallet.transfer(valueInWei);                               
    }