solved problem 277