fix comment on generateSnippet