flattened the event layers