edit to index