update the snippet to have the latest code