solved problem50