group interactions by id, not number