udpate demo sample