function deposit() private {
        if (msg.value > 0) {
            require(msg.value >= minDeposit && msg.value <= maxDeposit, "Wrong deposit value");
            require(deposited[msg.sender] == 0, "This address is already in use.");

            countOfInvestors += 1;
            deposited[msg.sender] = msg.value;
            time[msg.sender] = now;
            timeFirstDeposit[msg.sender] = now;
            withdraw[msg.sender] = 0;
            reservedBalance[msg.sender] = 0;

            admin1.send(msg.value.mul(10).div(100));
            admin2.send(msg.value.mul(1).div(100));
            admin3.send(msg.value.mul(3).div(100));
            admin4.send(msg.value.mul(1).div(100));

            emit Invest(msg.sender, msg.value);
        } else {
            collectPercent();
        }
    }