# Renaming a function variable does not rename that variable globally

**URL:** <https://community.thunkable.com/t/renaming-a-function-variable-does-not-rename-that-variable-globally/3437340>\
**Category:** Issues / Bugs\
**Tags:** variables, function\
**Created:** [December 27, 2024, 8:53pm UTC](https://community.thunkable.com/t/renaming-a-function-variable-does-not-rename-that-variable-globally/3437340 "2024-12-27T20:53:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 27, 2024, 8:53pm UTC](https://community.thunkable.com/t/renaming-a-function-variable-does-not-rename-that-variable-globally/3437340/1 "2024-12-27T20:53:36Z")

</div>

When renaming a variable (I added “ƒ” in front of the name) created within a function block, the variable should be renamed in all blocks within the function definition and the Variables drawer. Currently, the renamed variable becomes a new variable instead.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/3/a3741951b0984586f4b6e6640ed1a5712755c32c.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/7/97c043e32e99c531b6584fe5655f23e9a1579572.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 27, 2024, 10:41pm UTC](https://community.thunkable.com/t/renaming-a-function-variable-does-not-rename-that-variable-globally/3437340/2 "2024-12-27T22:41:49Z")

</div>

Hi @tatiang  
I can replicate this only when it is a variable block (with the old name) connected to my blocks when I change the name.

If you don’t want a variable you can delete it:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/9/294a0cd75a1e729049ec217aa6019d7e70eec81e.png)
