change event_type to enum type