the treatment consists in preventing accumulation of uric acid in joints, kidneys, and other places and in this way preventing complications.

Write the above sentence using proper case.
The treatment consists in preventing accumulation of uric acid in joints, kidneys, and other places and in this way preventing complications.