fitting script added