This upgrade will help ensure compliance with increasingly stringent drinking water quality regulations and to mitigate the occurrence of disinfection by-products which can form in parts of the distribution system when chlorine is used .