this is the right way to do byteLength