Title: Devaluation, the terms of trade, and investment in a Keynesian economy