update the demo program