more performant line following thread