update the result.