automatic infer starts