hex to dec code cleaned and update thing