code snippet update