41 datasets found
  1. Spain: Population density 2022

    • statista.com
    Updated Jan 22, 2025
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Statista (2025). Spain: Population density 2022 [Dataset]. https://www.statista.com/statistics/271154/population-density-in-spain/
    Explore at:
    Dataset updated
    Jan 22, 2025
    Dataset authored and provided by
    Statistahttp://statista.com/
    Area covered
    Spain
    Description

    The population density of Spain maintained a steadily at a rate of over 92 inhabitants per square kilometers in the last decade, with the latest figures revealing a density of 95 people per square kilometer in 2022. Spain’s degree of urbanization is rather high, with levels reaching over 81 percent of urbanization in the country. Andalusia, with a total number of 8.6 million inhabitants, ranked first on the list of most populous autonomous communities in Spain.

    Population density: a world of contrast

    Spain is far from the European Union’s average population density, which stood at approximately 111.89 people per square kilometer in 2021, that is, a difference of over 17 people per square meter below the average. Monaco, the country with the highest population density in the world, featured about 24,621 inhabitants per square kilometer, making Spain’s population density look minimal. The results in Macao were very similar, with a population density that reached over 21,000 people per square kilometer.

    The re-population of a country

    The population of Spain declined for many years during the economic recession, returning to a positive trend after 2015. The Spanish population is projected to increase by nearly two million by 2028 compared to 2024. Despite this expected increase, Spain has one of the lowest fertility rate in the European Union, with barely 1.29 children per woman according to the latest reports.

  2. M

    Spain Population Density | Historical Chart | Data | 1961-2022

    • macrotrends.net
    csv
    Updated Jul 31, 2025
    + more versions
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    MACROTRENDS (2025). Spain Population Density | Historical Chart | Data | 1961-2022 [Dataset]. https://www.macrotrends.net/datasets/global-metrics/countries/esp/spain/population-density
    Explore at:
    csvAvailable download formats
    Dataset updated
    Jul 31, 2025
    Dataset authored and provided by
    MACROTRENDS
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Time period covered
    Jan 1, 1961 - Dec 31, 2022
    Area covered
    Spain
    Description

    Historical dataset showing Spain population density by year from 1961 to 2022.

  3. S

    Spain ES: Population Density: People per Square Km

    • ceicdata.com
    Updated Dec 15, 2019
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    CEICdata.com (2019). Spain ES: Population Density: People per Square Km [Dataset]. https://www.ceicdata.com/en/spain/population-and-urbanization-statistics/es-population-density-people-per-square-km
    Explore at:
    Dataset updated
    Dec 15, 2019
    Dataset provided by
    CEICdata.com
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Time period covered
    Dec 1, 2006 - Dec 1, 2017
    Area covered
    Spain
    Variables measured
    Population
    Description

    Spain ES: Population Density: People per Square Km data was reported at 93.105 Person/sq km in 2017. This records an increase from the previous number of 92.929 Person/sq km for 2016. Spain ES: Population Density: People per Square Km data is updated yearly, averaging 77.743 Person/sq km from Dec 1961 (Median) to 2017, with 57 observations. The data reached an all-time high of 93.508 Person/sq km in 2011 and a record low of 61.506 Person/sq km in 1961. Spain ES: Population Density: People per Square Km data remains active status in CEIC and is reported by World Bank. The data is categorized under Global Database’s Spain – Table ES.World Bank.WDI: Population and Urbanization Statistics. Population density is midyear population divided by land area in square kilometers. Population is based on the de facto definition of population, which counts all residents regardless of legal status or citizenship--except for refugees not permanently settled in the country of asylum, who are generally considered part of the population of their country of origin. Land area is a country's total area, excluding area under inland water bodies, national claims to continental shelf, and exclusive economic zones. In most cases the definition of inland water bodies includes major rivers and lakes.; ; Food and Agriculture Organization and World Bank population estimates.; Weighted average;

  4. T

    Spain - Population Density (people Per Sq. Km)

    • tradingeconomics.com
    csv, excel, json, xml
    Updated May 27, 2017
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    TRADING ECONOMICS (2017). Spain - Population Density (people Per Sq. Km) [Dataset]. https://tradingeconomics.com/spain/population-density-people-per-sq-km-wb-data.html
    Explore at:
    xml, csv, excel, jsonAvailable download formats
    Dataset updated
    May 27, 2017
    Dataset authored and provided by
    TRADING ECONOMICS
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Time period covered
    Jan 1, 1976 - Dec 31, 2025
    Area covered
    Spain
    Description

    Population density (people per sq. km of land area) in Spain was reported at 95.63 sq. Km in 2022, according to the World Bank collection of development indicators, compiled from officially recognized sources. Spain - Population density (people per sq. km) - actual values, historical data, forecasts and projections were sourced from the World Bank on September of 2025.

  5. S

    Spain Population density - data, chart | TheGlobalEconomy.com

    • theglobaleconomy.com
    csv, excel, xml
    Updated Mar 26, 2020
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Globalen LLC (2020). Spain Population density - data, chart | TheGlobalEconomy.com [Dataset]. www.theglobaleconomy.com/Spain/population_density_us_states/
    Explore at:
    csv, xml, excelAvailable download formats
    Dataset updated
    Mar 26, 2020
    Dataset authored and provided by
    Globalen LLC
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Area covered
    Spain
    Description

    Spain: Population density, in people per sq. mile: The latest value from is people per sq. mile, unavailable from people per sq. mile in . In comparison, the world average is 0 people per sq. mile, based on data from countries. Historically, the average for Spain from to is people per sq. mile. The minimum value, people per sq. mile, was reached in while the maximum of people per sq. mile was recorded in .

  6. Median age of the population in Spain 1950-2050

    • statista.com
    Updated Jan 22, 2025
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Statista (2025). Median age of the population in Spain 1950-2050 [Dataset]. https://www.statista.com/statistics/275398/median-age-of-the-population-in-spain/
    Explore at:
    Dataset updated
    Jan 22, 2025
    Dataset authored and provided by
    Statistahttp://statista.com/
    Area covered
    Spain
    Description

    Spain is gradually becoming older, or so it seems when looking at the latest studies which forecast that the average Spaniard would be 51.79 years old by the year 2050. The Mediterranean country featured a median age of 26.48 years old in 1950, but this trend shifted towards a steady aging of the Spanish population in the subsequent years. Spain’s median age was approximately 44 years in 2020. Aging: a common problem across the continent Data related to age in the Mediterranean country essentially behaves similarly to the rest of its European counterparts, whose population is also slowly but surely getting older. This will not come as a surprise since Spain has one of the highest life expectancies at birth in the world and the lowest European fertility rate, which stood at 1.29 children per woman according to the latest reports. Older, but growing population Despite its aging, the population of Spain has been growing for the past couple of years and is expected to surpass 49 million residents by 2026, mainly due to immigration. During the last ten years, the country featured a continuous population density of approximately 95 inhabitants per square kilometer – a figure far from the European average, which stood nearly at 112 inhabitants per square kilometer in 2021.

  7. Population density by regions in Spain

    • kaggle.com
    Updated Jun 18, 2020
    + more versions
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Francisco Aguilera (2020). Population density by regions in Spain [Dataset]. https://www.kaggle.com/datasets/franciscoaguilera/population-density-by-regions-in-spain/suggestions
    Explore at:
    CroissantCroissant is a format for machine-learning datasets. Learn more about this at mlcommons.org/croissant.
    Dataset updated
    Jun 18, 2020
    Dataset provided by
    Kagglehttp://kaggle.com/
    Authors
    Francisco Aguilera
    Area covered
    Spain
    Description

    Dataset

    This dataset was created by Francisco Aguilera

    Contents

  8. w

    Spain - Complete Country Profile & Statistics 2025

    • worldviewdata.com
    html
    Updated Jul 24, 2025
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    World View Data (2025). Spain - Complete Country Profile & Statistics 2025 [Dataset]. https://www.worldviewdata.com/countries/spain
    Explore at:
    htmlAvailable download formats
    Dataset updated
    Jul 24, 2025
    Dataset authored and provided by
    World View Data
    License

    https://worldviewdata.com/termshttps://worldviewdata.com/terms

    Time period covered
    2025
    Area covered
    Variables measured
    Area, Population, Literacy Rate, GDP per capita, Life Expectancy, Population Density, Human Development Index, GDP (Gross Domestic Product), Geographic Coordinates (Latitude, Longitude)
    Description

    Comprehensive socio-economic dataset for Spain including population demographics, economic indicators, geographic data, and social statistics. This dataset covers key metrics such as GDP, population density, area, capital city, and regional classifications.

  9. Population of Spain in 2025, by autonomous community

    • statista.com
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Statista, Population of Spain in 2025, by autonomous community [Dataset]. https://www.statista.com/statistics/445549/population-of-spain-by-autonomous-community/
    Explore at:
    Dataset authored and provided by
    Statistahttp://statista.com/
    Time period covered
    Jan 1, 2025
    Area covered
    Spain
    Description

    As of January 2025, Andalusia was the most populated autonomous community in Spain, with a total amount of approximately 8.6 million inhabitants. Catalonia and Madrid followed closely, with populations amounting to approximately eight million and seven million respectively. The population in Spain has also been analyzed by gender and autonomous community.

  10. t

    Data from: Data and R code for estimating red fox (Vulpes vulpes) population...

    • service.tib.eu
    • doi.pangaea.de
    Updated Nov 30, 2024
    + more versions
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    (2024). Data and R code for estimating red fox (Vulpes vulpes) population density in Los Pilones and La Nava (Ciudad Real, Spain) using generalized spatial mark-resight models with incomplete identification (gen-SMR-ID) [Dataset]. https://service.tib.eu/ldmservice/dataset/png-doi-10-1594-pangaea-898560
    Explore at:
    Dataset updated
    Nov 30, 2024
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Area covered
    Ciudad Real, La Nava, Spain
    Description

    This dataset consists of a .zip folder containing all data files and R code for reproducing the spatial mark-resight with incomplete identification (gen-SMR-ID) analyses to estimate red fox population density and abundance in two places of Ciudad Real (Spain): La Nava and Los Pilones, and a separate dataset and R-code to test the new model using distance sampling in La Nava.

  11. s

    Citation Trends for "Real estate bubble and urban population density: six...

    • shibatadb.com
    Updated Jan 23, 2016
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Yubetsu (2016). Citation Trends for "Real estate bubble and urban population density: six Spanish metropolitan areas 2001–2011" [Dataset]. https://www.shibatadb.com/article/G987cBNb
    Explore at:
    Dataset updated
    Jan 23, 2016
    Dataset authored and provided by
    Yubetsu
    License

    https://www.shibatadb.com/license/data/proprietary/v1.0/license.txthttps://www.shibatadb.com/license/data/proprietary/v1.0/license.txt

    Time period covered
    2016 - 2024
    Variables measured
    New Citations per Year
    Description

    Yearly citation counts for the publication titled "Real estate bubble and urban population density: six Spanish metropolitan areas 2001–2011".

  12. e

    Population density by NUTS 3 region

    • data.europa.eu
    csv, html, tsv, xml
    Updated Jul 19, 2025
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Eurostat (2025). Population density by NUTS 3 region [Dataset]. https://data.europa.eu/data/datasets/gngfvpqmfu5n6akvxqkpw?locale=en
    Explore at:
    xml(237347), tsv(119708), xml(60900), csv(302593), htmlAvailable download formats
    Dataset updated
    Jul 19, 2025
    Dataset authored and provided by
    Eurostat
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Description

    Population density by NUTS 3 region

  13. Dentists' density in Spain in 2023, by region

    • statista.com
    Updated Jul 9, 2025
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Statista (2025). Dentists' density in Spain in 2023, by region [Dataset]. https://www.statista.com/statistics/779877/number-of-dentists-per-100-000-inhabitants-in-spain-by-autonomous-community/
    Explore at:
    Dataset updated
    Jul 9, 2025
    Dataset authored and provided by
    Statistahttp://statista.com/
    Time period covered
    2023
    Area covered
    Spain
    Description

    In 2023, there were approximately ** registered dentists per 100,000 inhabitants in Spain. By autonomous community, Madrid had the highest density, with ****** dentists per 100,000 population. Asturias followed, with around ** professionals per 100,000 population.

  14. Population in the province of Barcelona in Spain 1996-2024

    • statista.com
    Updated Jul 10, 2025
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Statista (2025). Population in the province of Barcelona in Spain 1996-2024 [Dataset]. https://www.statista.com/statistics/1201888/population-of-the-spanish-province-of-barcelona/
    Explore at:
    Dataset updated
    Jul 10, 2025
    Dataset authored and provided by
    Statistahttp://statista.com/
    Time period covered
    Jan 1, 2024
    Area covered
    Spain
    Description

    The province in which the Catalan capital, Barcelona, is located has experienced a significant increase in population since 1996. In January 2023, the inhabitants of the province of Barcelona amounted to nearly *** million, which is also the highest figure registered during the period under consideration.

  15. Estimates of population density of A. scirpaceus and A. arundinaceus...

    • plos.figshare.com
    xls
    Updated May 30, 2023
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Óscar Frías; Luis M. Bautista; Francisco V. Dénes; Jesús A. Cuevas; Félix Martínez; Guillermo Blanco (2023). Estimates of population density of A. scirpaceus and A. arundinaceus according to available and suitable habitat in Madrid province, central Spain. [Dataset]. http://doi.org/10.1371/journal.pone.0201482.t002
    Explore at:
    xlsAvailable download formats
    Dataset updated
    May 30, 2023
    Dataset provided by
    PLOShttp://plos.org/
    Authors
    Óscar Frías; Luis M. Bautista; Francisco V. Dénes; Jesús A. Cuevas; Félix Martínez; Guillermo Blanco
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Area covered
    Madrid, Spain
    Description

    Estimates of population density of A. scirpaceus and A. arundinaceus according to available and suitable habitat in Madrid province, central Spain.

  16. e

    Dataset of Iberian ibex population in Sierra Nevada (Spain) - Dataset -...

    • b2find.eudat.eu
    Updated Apr 9, 2024
    + more versions
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    (2024). Dataset of Iberian ibex population in Sierra Nevada (Spain) - Dataset - B2FIND [Dataset]. https://b2find.eudat.eu/dataset/d4e578b2-89b6-51d0-99e6-2f1fe2b95184
    Explore at:
    Dataset updated
    Apr 9, 2024
    Area covered
    Sierra Nevada, Spain
    Description

    This dataset provides long-term information about Iberian ibex (Capra pyrenaica hispanica Schimper, 1848) presence in Sierra Nevada (SE Iberian Peninsula), as a result of annual sampling from 1993 to 2018 done by the managers of the Sierra Nevada Natural and National Park. They carried out the transects collecting different variables such as the number of individuals observed, the perpendicular distance of each group of goats to the transect line and, at an individual level and sex as well as age of individuals in the case of males. These data enabled the calculation of population parameters such as density, sex ratio, birth rate and age structure. These parameters are key for Iberian ibex conservation and management, given that Sierra Nevada harbours the largest population of this species in the Iberian Peninsula. The data set we present is structured using the Darwin Core biological standard, which contains 3,091 events (582 transect walk events and 2,509 group sighting events), 5,396 occurrences, and 2,502 measurements. The occurrences include the sightings of 11,436 individuals (grouped by sex and age) from 1993 to 2018 in a total of 88 transects distributed along Sierra Nevada, of which 33 have been continuously sampled since 2008.

  17. f

    Density estimations (individual/km2) by Bayesian Spatial Explicit Capture...

    • plos.figshare.com
    xls
    Updated Jun 3, 2023
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Jose María Gil-Sánchez; Jose Miguel Barea-Azcón; Javier Jaramillo; F. Javier Herrera-Sánchez; José Jiménez; Emilio Virgós (2023). Density estimations (individual/km2) by Bayesian Spatial Explicit Capture Recapture models (block #18 to #14). [Dataset]. http://doi.org/10.1371/journal.pone.0227708.t003
    Explore at:
    xlsAvailable download formats
    Dataset updated
    Jun 3, 2023
    Dataset provided by
    PLOS ONE
    Authors
    Jose María Gil-Sánchez; Jose Miguel Barea-Azcón; Javier Jaramillo; F. Javier Herrera-Sánchez; José Jiménez; Emilio Virgós
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Description

    See Table 1 for details of each sampling block. λ0 is the baseline detection rate, and σ the parameter of scale from the half-normal distribution, related to the home range.

  18. o

    Geonames - All Cities with a population > 1000

    • public.opendatasoft.com
    • data.smartidf.services
    • +2more
    csv, excel, geojson +1
    Updated Mar 10, 2024
    + more versions
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    (2024). Geonames - All Cities with a population > 1000 [Dataset]. https://public.opendatasoft.com/explore/dataset/geonames-all-cities-with-a-population-1000/
    Explore at:
    csv, json, geojson, excelAvailable download formats
    Dataset updated
    Mar 10, 2024
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Description

    All cities with a population > 1000 or seats of adm div (ca 80.000)Sources and ContributionsSources : GeoNames is aggregating over hundred different data sources. Ambassadors : GeoNames Ambassadors help in many countries. Wiki : A wiki allows to view the data and quickly fix error and add missing places. Donations and Sponsoring : Costs for running GeoNames are covered by donations and sponsoring.Enrichment:add country name

  19. Registration of plates in Spain during July 2022

    • zenodo.org
    pdf
    Updated Mar 6, 2025
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Silvia Liñán Canela; Claudia Arcas Mur; Daniel Herrero Fernandez; Pia Casamitjana Badies; Silvia Liñán Canela; Claudia Arcas Mur; Daniel Herrero Fernandez; Pia Casamitjana Badies (2025). Registration of plates in Spain during July 2022 [Dataset]. http://doi.org/10.5281/zenodo.14979379
    Explore at:
    pdfAvailable download formats
    Dataset updated
    Mar 6, 2025
    Dataset provided by
    Zenodohttp://zenodo.org/
    Authors
    Silvia Liñán Canela; Claudia Arcas Mur; Daniel Herrero Fernandez; Pia Casamitjana Badies; Silvia Liñán Canela; Claudia Arcas Mur; Daniel Herrero Fernandez; Pia Casamitjana Badies
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Area covered
    Spain
    Description

    The analysis of car plate registrations has been carried out in correlation with various vehicle-related variables and population density. This study provides a detailed examination of the relationships between these factors, offering a clearer understanding of their impact and distribution across different provinces.

  20. Number of births in Spain 2006-2024

    • statista.com
    Updated Mar 3, 2025
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Statista (2025). Number of births in Spain 2006-2024 [Dataset]. https://www.statista.com/statistics/449295/number-of-births-in-spain/
    Explore at:
    Dataset updated
    Mar 3, 2025
    Dataset authored and provided by
    Statistahttp://statista.com/
    Area covered
    Spain
    Description

    According to the most recent data, more people died in Spain than were born in 2024, with figures reaching over 439,000 deaths versus 322,034 newborns. From 2006 to 2024, 2008 ranked as the year in which the largest number of children were born, with figures reaching over half a million newborns. The depopulation of a country The population of Spain declined for many years, a negative trend reverted from 2016 onwards, and was projected to grow by nearly two million by 2029 compared to 2024. Despite this expected increase, Spain has one of the lowest fertility rate in the European Union, with barely 1.29 children per woman according to the latest reports. During the last years, the country featured a continuous population density of approximately 94 inhabitants per square kilometer – a figure far from the European average, which stood nearly at nearly 112 inhabitants per square kilometer in 2021. Migration inflow: an essential role in the Spanish population growth One of the key points to balance out the population trend in Spain is immigration – Spain’s immigration figures finally started to pick up in 2015 after a downward trend that presumably initiated after the 2008 financial crisis, which left Spain with one of the highest unemployment rates in Europe.

Share
FacebookFacebook
TwitterTwitter
Email
Click to copy link
Link copied
Close
Cite
Statista (2025). Spain: Population density 2022 [Dataset]. https://www.statista.com/statistics/271154/population-density-in-spain/
Organization logo

Spain: Population density 2022

Explore at:
Dataset updated
Jan 22, 2025
Dataset authored and provided by
Statistahttp://statista.com/
Area covered
Spain
Description

The population density of Spain maintained a steadily at a rate of over 92 inhabitants per square kilometers in the last decade, with the latest figures revealing a density of 95 people per square kilometer in 2022. Spain’s degree of urbanization is rather high, with levels reaching over 81 percent of urbanization in the country. Andalusia, with a total number of 8.6 million inhabitants, ranked first on the list of most populous autonomous communities in Spain.

Population density: a world of contrast

Spain is far from the European Union’s average population density, which stood at approximately 111.89 people per square kilometer in 2021, that is, a difference of over 17 people per square meter below the average. Monaco, the country with the highest population density in the world, featured about 24,621 inhabitants per square kilometer, making Spain’s population density look minimal. The results in Macao were very similar, with a population density that reached over 21,000 people per square kilometer.

The re-population of a country

The population of Spain declined for many years during the economic recession, returning to a positive trend after 2015. The Spanish population is projected to increase by nearly two million by 2028 compared to 2024. Despite this expected increase, Spain has one of the lowest fertility rate in the European Union, with barely 1.29 children per woman according to the latest reports.

Search
Clear search
Close search
Google apps
Main menu