Update snippets.cpp