change some code according to DOSE.