added a byteCnt