handling confidence