remove headers with no events after filtering