It was instrumental in bringing about the integration of Marxism with China's labour movement, and it paved the way, both in ideology and in the matter of cadres, for the founding of the Chinese Communist Party.
请问 both in ideology and in the matter of cadres在句中充当什么成分呢?