optising fits and extrapolations