improved line tracking