re-implementing parFilter.