added the second solved problem.