index with batch