fix more example code