modified migrate_group_set