length of model must equal nitems