changed function year2num