output data by month