demo code set up