output correct byteLength