added inference function