horizontal and vertical segments