changed i to closest to make it a bit more readable