code snippets added