demo for how to update a file