eliminate the irrelevant events