improvements to vertical line detection when using the middle roads