replace strtol to hex2num