change demo code