loop over year