fix snippet to use latest version