implementing new fitting