renamed type to event_type