moved add transaction to inline