replace localVar by localVar