enhance confidence index calculation