refactor change Index to modifiedIndex