You have multiply declaration of the variable with same name in the same scope.
Try to use different name of the variable if you need it in scope there you try to declare it.
And use it in you methods in
. But better to declare variables in a class not globally.