refactor to use readVarBytes