pattern sandwiching