loop through month and year