solved local variable problem
V1