(iii)set aside either wholly or in part or revise or alter any security given or agreement made in respect of any loan, and if the creditor has parted with the security, order him to indemnify the debtor in such manner and to such extent as it may deem just :