solved problem 287