changed index order