initial code snippets