event type and event code