refactored findTransactions