added immediate inference function and teset unique function