change places of index