fixed index2 api