replace generation number with group generation