struct end_event added