update example for switching versions