actually only generate num_snippets snippets