moved 'get_event_data()' from device to event