quick change of code to the indexerApi