make eventsBuffered a constant