adding getConfidence