change patterns priority