inference function