solver seems to work in a way, but the solvers terminate after N iterations