new demo code