find table index