free best_match structure