add type to event obj