add method snippets