cleanup ops code.