change order of arrays and add one more pattern