added useful snippets