cleanup of example code