move the index