refactored dog_pile_filter to be thread safe