table_from_index implemented