fixed month-summary function