fixed fitting scripts