add wraparound patterns