more precise error computation