added summerize function