1. it should maitain the same order as listed. 2. based on the pattern (bakery|fruitjunction) it should add some pattern