changed OutputCollector to collect to an ArrayList<Record>