upgrade index API to Long64_t