added func to cosmo