Added vertical line case