The Utah Medicaid Program is getting $42,000 from Walgreens in a settlement of a lawsuit that accused the company of improper billing.

Utah's payment is part of a $35 million settlement between the company and the United States and 42 states.

"This settlement is one more example of how we will be vigilant in protecting the integrity of the Medicaid Program and making sure companies do not profit by taking advantage of the people who rely on Medicaid," Utah Attorney General mark Shurtleff said in a news release.

The settlement resolves claims that Walgreens violated state and federal laws and regulations by switching dosage forms on three medicines to treat Parkinson's disease and dementia, depression and ulcers that are commonly prescribed to Medicaid patients, Shurtleff's office reported. The move reportedly caused Medicaid programs nationwide to pay more for the drugs.