use getConfidence instead of isClosed