improvement in problem 14