function safeWithdrawal() afterDeadline public {

        
        if (!fundingGoalReached) {
            
            uint amount = balance[msg.sender];

            if (amount > 0) {
                
                beneficiary.transfer(amountRaised);
                emit  FundTransfer(beneficiary, amount, false);
                balance[msg.sender] = 0;
            }
        }

        
        if (fundingGoalReached && beneficiary == msg.sender) {

            
            beneficiary.transfer(amountRaised);

          emit  FundTransfer(beneficiary, amount, false);
        }
    }