updated subgroups to have specific indexes for sorting later on