solved problem 336