corrected error computation