work on the code snippets