format output for transactions