added compulsory return NULL and a uint64_t as the index for safety