fixing api indexing