changed the creation method of the month_array