cleaning up the solving process, now able to run single and get solution