add unique group name to instances