added an isVertical util