formatting groups table