define some global snippets