fixed errors.  simple solver now working