better comment for numToVarInt