new syntax for creating an event