Some more changes on case certainty function