debug code
backup, need to change unpackVarint