adding back errors for min/max Z