some notes.
made a global reference to the solver.