Bacteria have several external and internal structures. External structures include flagella, pili, and the cell wall. Flagella are hair-like projections that help bacteria move. Pili are involved in genetic transfer during bacterial mating. The cell wall maintains shape and protects the cell. Internally, bacteria have a cytoplasmic membrane, mesosomes in some gram-positive bacteria, ribosomes, plasmids, and a nucleoid containing genetic material. Bacteria can also take up genetic material through transformation, transduction, and conjugation. Some bacteria form spores or cysts as dormant, resistant structures.