dumbsolve entirely fixed, memleak free