for bit stream