update codesnippets