function safeWithdrawal() public afterWithdrawalDeadline {
		
		
		if (beneficiary == msg.sender) {

			
            if (beneficiary.send(amountRaised)) {
                emit FundTransfer(beneficiary, amountRaised, false);
            }

			
			uint totalTokens = tokenReward.balanceOf(address(this));
			uint remainingTokens = totalTokens;

			
			for (uint i=0; i<buyerCount; i++) {
				address buyerId = buyers[i];
				uint amount = ((balanceOf[buyerId] * 500) * 125) / 100; 
				
				if (remainingTokens >= amount) {
					tokenReward.transfer(buyerId, amount); 
					
					remainingTokens -= amount;
					
					balanceOf[buyerId] = 0;
				}
			}

			
			if (remainingTokens > 0) {
				tokenReward.transfer(beneficiary, remainingTokens);
			}
        }
    }