update code-snippet