update the solution.