couldn't define local variable