repaired problem 8