replaced model_ids to models