parseVarint now is template