update to use event object syntax