add trigger snippet