added the error figure