Chromosomes have a complex hierarchical structure that allows long DNA molecules to fit inside cells. At the most basic level, DNA wraps around histone proteins to form nucleosomes, which resemble "beads on a string". Nucleosomes further compact to form higher-order chromatin structures. Chromatin contains both euchromatin, which is loosely packed, and heterochromatin, which is highly condensed. Non-histone proteins also aid in DNA compaction and genetic processes like transcription and replication. Chromatin packaging allows meters of DNA to fit within microscopic nuclei.