updated more snippets