updated ofEvents.<event> to ofEvents().<event>