add snippets
minor adjustment