example code cleanup