added length for lines and point for intersections