updated get_filtered_data. renamed to calculate_filtered_data