added endianness to nat