Flame cells are specialized excretory cells found in flatworms (platyhelminthes) that remove waste materials from the body. They function by filtering waste through cilia that flicker like a flame, creating current to draw fluid through. Nephridia are found in annelids, malpighian tubules in insects, and kidneys in vertebrates.