some minor tweeks to the example