snippets from macros