reformat groups