fitting done with 1d interpolation