switch index and index_complete