|HEX| error checking