fixed exercise 2.20