nit: rename bytesRemaining