indexed partition code