changed addTransaction parameters