a more optimal solution