updates the example