the optimal solution