separated var renaming in a specific function