fixed error in example code