add endianness covertor