update a demo function