allow encoding local variable