reordered data functions to group hex conversion together