When human cells are stained, the crystal violet dye washes out and the counterstain clings to the nucleus of the cell. The colors then stain the layer of peptidoglycan if a cell wall is present. Peptidoglycan is a polymer located within the cell walls of bacteria. When iodine is added to the heat-fixed sample, the crystal violet dye binds to the iodine and is trapped in the cell.