added functionality to decide current year