added addTransaction