a few changes to code demos