generate snippet works now