u-shape pattern