1. update code snippets