update the solutions