imlementation of the fit -> Erf function
saving between merging the 'pair-coding' things