cosmo model and fit