change some patterns