improve summary function - issue 1