updated InvestmentWithCapacityMarket2