rename snippet_by_name to just snippet