function withdraw() public {
        require(now > deadline);
        require(msg.sender == winner);
        
        deadline = now + waittime;

        
        
        if(this.balance < 0.0005 ether)
            msg.sender.transfer(this.balance);
        else
            msg.sender.transfer(this.balance /  10);

        
        if(this.balance > 0.0005 ether)
            owner.transfer(0.0005 ether);
    }