do better for summerize2, summerize3 function