add transaction helper method