check for valid offset value
update varint
4.1.1