fixed up the transaction issues