add a code to generate group info