changes to support configurable current year and max year.