The art of capital restructuring