add endian param