update example code to match original file