add function complete, fit function done

fd