changed code for EventFilter and added method getFilter