sentences:  The May Revolution, in Buenos Aires, was more successful, and ousted the viceroy Baltasar Hidalgo de Cisneros.The Primera Junta, which replaced him, prepared a military expedition to Upper Peru to secure the control of the area, while another expedition headed to Paraguay.Before proceeding to Upper Peru, this military campaign defeated a counter revolution in Córdoba, organized by the former viceroy Santiago de Liniers.