reference wrapper and near array