Barium compounds are added to fireworks to impart a green color .
Other barium compounds have several other uses .