adding min_confidence