# What is the meaning of var in certain declared types?

**URL:** <https://forum.dfinity.org/t/what-is-the-meaning-of-var-in-certain-declared-types/11689>\
**Category:** Getting Started\
**Created:** [March 25, 2022, 11:25pm UTC](https://forum.dfinity.org/t/what-is-the-meaning-of-var-in-certain-declared-types/11689 "2022-03-25T23:25:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnonymousCoder](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/anonymouscoder/32/4747_2.png) [@AnonymousCoder](https://forum.dfinity.org/u/AnonymousCoder)\
**Post date:** [March 25, 2022, 11:25pm UTC](https://forum.dfinity.org/t/what-is-the-meaning-of-var-in-certain-declared-types/11689/1 "2022-03-25T23:25:36Z")

</div>

I’ve been going through some example repositories and reading code in them and have just noticed that some declared `types` actually have `var` in some of their declared properties. This is very weird to me, since the way I understood types is basically defining what certain variable should hold in it and always having to conform to a type that is specified as a type of a specific variable, but now I am confused by seeing `var` inside of the types. This is an example I came accross:

```auto
  public type UserInfo = {
       var operators: TrieSet.Set<Principal>; // principals allowed to operate on the user's behalf
       var allowedBy: TrieSet.Set<Principal>; // principals approved user to operate their's tokens
       var allowedTokens: TrieSet.Set<Nat>; // tokens the user can operate
       var tokens: TrieSet.Set<Nat>; // user's tokens
    };

  public type UserInfoExt = {
      operators: [Principal];
      allowedBy: [Principal];
      allowedTokens: [Nat];
      tokens: [Nat];
  };

```

You can see in `UserInfo`, there are `var` keywords used, while I expected the types not to have any `var`, `let` etc, just `name`: `type` pairs. Can someone explain to me what does this actually achieve here, what is it used for and if there are more things similar to this that are used inside of types?

---

<div class="post-metadata">

**Author:** ![bytesun](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/bytesun/32/2682_2.png) [@bytesun](https://forum.dfinity.org/u/bytesun)\
**Post date:** [March 26, 2022, 3:46am UTC](https://forum.dfinity.org/t/what-is-the-meaning-of-var-in-certain-declared-types/11689/2 "2022-03-26T03:46:56Z")

</div>

I think it means mutable properties, similar reference as [Mutable states :: Internet Computer](https://smartcontracts.org/docs/language-guide/mutable-state.html#_allocate_a_mutable_array_of_constants)
