add endianness