minor change to thread example