library snippets