convert local-local variable into local variable