update the result