modify the index to async