modified old solver to check results against the new one