added solveCG