updating the solver code