the communist PCE controlled some 25% of them each, with the rest distributed among PSOE, JSU, various Republican groupings and politically-ambiguous units like UHP. Analysis of some 70 larger detention centres reveals a 34% domination of CNT-FAI, with PCE behind 19%, PSOE 13% and JSU behind 6% of the units. The CPIP itself was theoretically controlled by a 30-member board divided equally among a number of parties, but its investigative squads reflected clear anarchist domination: 40% were related to CNT-FAI, 19% to PSOE and 19% to PCE. The end of "bourgeoisie policing" was marked also by transformation of CIV, the state plainclothes police, a formation that was overtaken by the Socialists, as 31% of new recruits were from UGT, 17% from PSOE, 15% from IR, 5% from PCE and mere 3% - perhaps unsurprisingly because of the anarchist position toward state structures in general and police in particular – from CNT-FAI. IGM, a body marginally involved in security system, was also in 64% dominated by PSOE with marginal anarchist presence. Definitely more important MVR was similarly the socialist fiefdom; its director Manzano was a PSOE man at the time and 59% of militiamen registered were members of UGT; however, PCE affiliations marked 17% of them recorded and membership in the communist-dominated JSU was indicated by 14%. Political control of state security structures in Madrid turned a corner with the government leaving the capital. Within JDM, the public order department was seized by the communists, as reflected by appointments of Carillo and Cazorla, especially since PSOE-dominated CPIP and IGM were soon disbanded, and MVR followed suit some time afterwards. However, late 1936 and early 1937 were marked by mounting conflict between the anarchists and the communists, which following a shootout and a cabinet war in the government led to dissolution of JDM; nevertheless, the Communists at least for some time retained control over some CIV brigades and used some in their campaigns, as suggested by Valenti's role in the fate of Nin. The Anarchists retained a grade of control over military counter-intelligence, supervised by Salgado and Val. Of the new bodies emergent in mid-1937, the Madrid DEDIDE was controlled by PCE while the Madrid SIM fell mostly into hands of the Socialists, as certified by political affiliations of its head, Pedrero. The new police force, Cuerpo de Seguridad, was in 70% composed of former CPIP and in 30% of former MVR