how to optimize capital structure?