handling empty ledgers