implement snippets for 2.7