Retired Supreme Court Justice Sandra Day O’Connor said Wednesday that she’d do away with electing judges and make prosecutors and defense lawyers interchangeable as a way of improving the U.S. justice system.

O’Connor, who has spent much of her 21 months in retirement defending judicial independence, said judges who must run in partisan elections risk being compromised by the growing amount of campaign cash they must raise.