fixes for example 7 - 9