switched index order