successfully changing bar width based on confidenc