change local var to class var due to problems in closure - weird