table index working