Bismuth is usually mixed with other metals, such as lead, tin, iron or cadmium to form low-melting alloys. These alloys are used in such things as automatic fire sprinkler systems, fire detection systems and electrical fuses. Bismuth oxide (Bi2O3), a bismuth compound, is used as a yellow pigment in paints and cosmetics. Bismuth oxychloride (BiOCl) is used to make a pigment known as bismuth white. Bismuth carbonate (Bi2(CO3)3) is used to treat diarrhea and gastric ulcers.