resolve problem 1