related cmodels function