change half_bytes to halfBytes