add isA and isVertical functions