rm best_fit func dependency with the error acctp process by using its own function