added strip ledger function