define writeInt8 instead of writeUInt8 twice