What do you mean by "doesn't work"? Do you still get a compiler error? You still have both a method and a variable called "isPathA". I suggest (again) that you change the method name to something that describes what the method does (such as "checkPathChange"). Then you need to be sure you are actually calling the method from somewhere (from act(), probably).