fix update changes in example code