add group_id to select