updates for event emitter example