update snippet.