fixed local variables that shadow class attribute