added fetchTransactions method