cleanup example code