clean up example code