cleaning code related to iterative solvers