minor changes to example code.