some small tweaks on the snippets