add id to events