changed i < 10