complete_perfect_fit