minor, added fit functions