Only some species have a capsule usually consisting of polysaccharides. Also only some species are flagellates, and when they do have flagella they only have two basal body rings to support them (gram-negative have four). Both gram-positive and gram-negative bacteria commonly have a surface layer called an S-layer. In gram-positive bacteria, the S-layer is attached to the peptidoglycan layer (in gram-negative bacteria, the S-layer is attached directly to the outer membrane). Specific to gram-positive bacteria is the presence of teichoic acids in the cell wall. Some of these are lipoteichoic acids, which have a lipid component in the cell membrane that can assist in anchoring the peptidoglycan.