local variable was deleted; change to class property