You probably did not introduce the name 'thing'. Consider something more descriptive.