updated written-off loans condition