array replaced by a model containing the array