changed i to value