added fit functions