curve_fit is doent something (dont know what though