`i` should be a long since `size()` returns a long