changed NewtonSolve to use ModeArray instead of modelist