better grouped formatting