minor cleanups in trigger sample