moved convertToModel down to the CModel class