merge some of the patterns