correction to thing() function