adding filtering for events