inference works