updated transaction to account for those cases when the transaction details is null.