renamed filteredData to output