reverse hex to deal with the endianness switch