adds event filtering