input snippets