handling vertical lines