update the solutions.