threading on drawn lines for simplification