refactored tracking of sampled confidence