rename instance and work with subgroups