Extract items[i] to a temporary variable