new flag-array, changes according to new flag-array, 1 sum calculation in solver, formatting