add new function for hex to dec convertion