fallback if solve routine overhaul does not work. If works, enjoy