conjugate gradient cleanup