revise code that set fixed init group size