finish the solution