renamed events_by_ids to events_subset