update solution.