changed how events are created