Geodes can form in any cavity, but the term is usually reserved for more or less rounded formations in igneous and sedimentary rocks, while the more general term "vug" is applied to cavities in fissures and veins. They can form in gas bubbles in igneous rocks, such as vesicles in basaltic lavas, or as in the American Midwest, rounded cavities in sedimentary formations. After rock surrounding the cavity hardens, dissolved silicates and/or carbonates are deposited on the inside surface. Over time, this slow feed of mineral constituents from groundwater or hydrothermal solutions allows crystals to form inside the hollow chamber. Bedrock containing geodes eventually weathers and decomposes, leaving them present at the surface if they are composed of resistant material such as quartz.