A unit for removing CO2 from a syngas comprising means to remove acid gas from a syngas containing more than 30% mol CO on a dry basis and some H2S and carbonyl sulphide (COS) to eliminate at least most of H2S in a physical absorption unit to reach an H2S content in the purified syngas between 1 and 150 ppm, preferably between 10 and 50 ppm H2S, optional compression means to compress purified syngas to a pressure above 40 bar bas, preferably 50 bar abs or even 60 bar abs, means for heating purified syngas, a saturator for moisturizing the heated syngas to produce heated and moisturized syngas, means for Injecting steam into the heated and moisturized syngas to form a mixture of steam and syngas, at least one shift reactor for subjecting the mixture to water gas shift reaction in at least one water gas shift unit at a temperature greater than 250° C., preferably greater than 300° C., possibly in two consecutive reactors, means for cooling the shifted syngas to form cooled shifted syngas, an adsorption unit for removing H2O and H2S from the cooled shifted syngas by adsorption in any order to produce dehydrated syngas containing less than 20 ppm H2S, preferably less than 5 ppm or even less than 1 ppm H2S, means for separating the dehydrated syngas by partial condensation and/or distillation to form a H2 rich gaseous stream and CO2 rich liquid stream and means for sending the H2 rich gaseous stream as fuel to a gas turbine.