change example code to more accurately reflect current state