change the all debts logic