adding the solution