implement snippets methods