first proper version of norm_fit