creating confidence value