new index and API function