added viewport snippets