demo1 example with total change