fixed exercise 12