use correct class for event.