cleaner txn array handling