Title: The macroeconomic impact of foreign capital flows