order to improve treatment and prevent a wid