'property' should be declared as a local variable