number of models is a parameter