bytes to hex method made public