infer working