inline method printHex