parse year correctly