```\n        uint256 totalUserCollateral = totalCollateralValue(_collateralAddress, _loanHolder);\n        uint256 proposedLiquidationAmount;\n        { //scope block for liquidationAmount due to stack too deep\n            uint256 liquidationAmount = viewLiquidatableAmount(totalUserCollateral, 1 ether, isoUSDBorrowed, liquidatableMargin);\n            require(liquidationAmount > 0 , "Loan not liquidatable");\n            proposedLiquidationAmount = _calculateProposedReturnedCapital(_collateralAddress, _loanNFTs, _partialPercentage);\n            require(proposedLiquidationAmount <= liquidationAmount, "excessive liquidation suggested");\n        }\n        uint256 isoUSDreturning = proposedLiquidationAmount*LIQUIDATION_RETURN/LOAN_SCALE;\n        if(proposedLiquidationAmount >= totalUserCollateral){\n            //@audit bad debt cleared here\n        }\n```\n