resolve problem 2