added the solution all working