adding specific and general types in confidence computtaion