corrected minErr