fixed problem 8