demo code modification