part of the move of index()