fixed exercise4 for v12