add group and chord ids