fix up all of the grammar issues in this text
For instance, the investing of funds for research and development will raise the productive capacity of the country, thereby attracting more foreign direct investments.
For instance, the investing of funds for research and development will raise the productive capacity of the country, thereby attracting more direct foreign investments.