speedup for finding td in first row