clean up createTransaction