make the example code run properly