22. Inventories - €3,586 million

Millions of euro     
 at Dec. 31, 2013 at Dec. 31, 2012 restated Change 
Raw materials, consumables and supplies:         
- fuel  1,824  2,271  (447)  -19.7% 
- materials, equipment and other inventories  1,627  983  644  65.5% 
Total  3,451  3,254  197  6.1% 
Buildings available for sale  77  79  (2)  -2.5% 
Advances  58  53  -
TOTAL  3,586  3,338  248  7.4% 

Raw materials, consumables and supplies consist of fuel inventories to cover the requirements of the generation companies and trading activities, as well as materials and equipment for the operation, maintenance and construction of generation plants and distribution networks. The increase for the year is mainly attributable to the rise in green and environmental certificate inventories, which more than offset the contraction in stocks of gas and other fuels. The item also includes CO2 emission allowances in the amount of €525 million at December 31, 2013 (€384 million at December 31, 2012). The buildings available for sale are related to remaining units from the Group’s real estate portfolio and are primarily civil buildings.

Inventories measured at fair value amounted to €498 million. For more information on the level of fair value inputs and the measurement policies, please see note 7.