solved problem 164