solved problem 145