updating groupings