Generalized for vertical seams