record txn when creating