working on event dispatch related to event sorting