minor updates to the example program