fixed problem 8 to be better