Improvement for widths measurement program