solver for stability