declared a variable as a weak reference