loop over years