The impact of credit default swaps on corporate capital structure and investment policies