fix problem 8