added a demo to difference between updating methods